package com.example.blogserver.service;

import com.example.blogserver.a_utils.ResponseBodyMessage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

@SuppressWarnings({"all"})
public interface UpdateService {
    /**
     * 对用户将要修改的信息进项校验并修改数据库
     */
    ResponseBodyMessage<Boolean> updateMessage(HttpServletRequest request,
                                               String uname, String usig,
                                               String upas1, String upas2, String uoldPas,
                                               String ucode, String uemail, String ugitee);


    /**
     * 个人头像上传更新
     */
    ResponseBodyMessage<Boolean> uploadMyPhoto(MultipartFile file, HttpServletRequest request);
}
